-- GENERATED SPELL FOR [Mo'arg Weaponsmith] --


function spell0_19755(pUnit, Event) --@Chemical Flames,n/a--
pUnit:FullCastSpellOnTarget(36253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19755', 10000, 1)
end

function spell1_19755(pUnit, Event) --@Drill Armor,n/a--
pUnit:FullCastSpellOnTarget(37580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19755', 8000, 1)
end

function Sorts_19755(pUnit, Event)
local choix_sorts_19755 = math.random(0, 1)
if choix_sorts_19755 == 0 then
pUnit:RegisterEvent('spell0_19755', 1, 1)
end
if choix_sorts_19755 == 1 then
pUnit:RegisterEvent('spell1_19755', 1, 1)
end
end

function mob19755_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19755', math.random(1500, 3000), 1)
end

function mob19755_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19755_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19755_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19755, 1, 'mob19755_Action')
RegisterUnitEvent(19755, 2, 'mob19755_Leave')
RegisterUnitEvent(19755, 3, 'mob19755_Kill')
RegisterUnitEvent(19755, 4, 'mob19755_Die')
